MEMS magnetic field sensor